import axios from '@/libs/api.request'

export class TreatmentApi {
  // 待遇参数列表
  static getTreatmentParameters (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParameters',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑待遇参数
  static saveTreatmentParameter (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentParameter',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 更新待遇参数状态
  static upTreatmentParameterStatus (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentParameterStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据参数ID 获取参数相应信息
  static getTreatmentParameter (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParameter',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据参数环节ID 获取参数环节
  static getTreatmentParameterLink (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParameterLink',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据参数城市ID 获取参数城市配置
  static getTreatmentParameterCity (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParameterCity',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存参数环节
  static saveTreatmentParameterLinks (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentParameterLinks',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 更新参数环节状态
  static upTreatmentParameterLinkStatus (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentParameterLinkStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 保存参数城市配置
  static saveTreatmentParameterCitys (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentParameterCitys',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除参数城市配置
  static deTreatmentParameterCityStatus (params) {
    return axios.request({
      url: '/Treatment/DeTreatmentParameterCityStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 参数城市附件上传
  static treatmentAnnexUpload (params) {
    return axios.request({
      url: '/Treatment/TreatmentAnnexUpload',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 下载附件
  static treatmentDownLoadAttachment (params) {
    return axios.request({
      url: '/Treatment/TreatmentDownLoadAttachment',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 删除附件
  static treatmentDeleteAttachment (params) {
    return axios.request({
      url: '/Treatment/TreatmentDeleteAttachment',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 更新参数环节 排序
  static upTreatmentParameterLinkSort (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentParameterLinkSort',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取客户信息
  static getTreatmentEnjoyCustomer (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyCustomer',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取员工列表
  static getEmployeeListNew (params) {
    return axios.request({
      url: '/Treatment/GetEmployeeListNew',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据条件获取未添加的待遇参数环节
  static getTreatmentParametersNotQuoteEnableList (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParametersNotQuoteEnableList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据参数类型 获取已启用相关参数列表
  static getTreatmentParametersEnableList (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentParametersEnableList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 查询员工商保 待遇参数 等信息
  static getTreatmentEnjoyEmployeeCommercial (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyEmployeeCommercial',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 查询员工公积金 待遇参数 等信息
  static getTreatmentEnjoyEmployeeProvidentFund (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyEmployeeProvidentFund',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 查询员工社保 待遇参数 等信息
  static getTreatmentEnjoyEmployeeSocialSecurity (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyEmployeeSocialSecurity',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 查看待遇享受 社保 公积金
  static getTreatmentEnjoy (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoy',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据待遇享受ID 获取弹窗详情
  static getTreatmentEnjoyLink (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyLink',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据待遇享受ID 和类型查询环节
  static getTreatmentEnjoyLinks (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyLinks',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 查看待遇享受 商保
  static getTreatmentEnjoyCommercial (params) {
    return axios.request({
      url: '/Treatment/GetTreatmentEnjoyCommercial',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 待遇享受环节附件上传
  static treatmentEnjoyLinkAnnexUpload (params) {
    return axios.request({
      url: '/Treatment/TreatmentEnjoyLinkAnnexUpload',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇享受环节 下载附件
  static treatmentEnjoyLinkDownLoadAttachment (params) {
    return axios.request({
      url: '/Treatment/TreatmentEnjoyLinkDownLoadAttachment',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params,
      responseType: 'blob'
    })
  }

  // 待遇享受环节 删除附件
  static treatmentEnjoyLinkDeleteAttachment (params) {
    return axios.request({
      url: '/Treatment/TreatmentEnjoyLinkDeleteAttachment',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 编辑待遇享受 商保
  static saveTreatmentCommercial (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentCommercial',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑待遇享受 社保 公积金
  static saveTreatmentEnjoy (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentEnjoy',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑待遇享受环节
  static saveTreatmentEnjoyLink (params) {
    return axios.request({
      url: '/Treatment/SaveTreatmentEnjoyLink',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑待遇享受 状态 社保 公积金
  static upTreatmentEnjoyStatus (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentEnjoyStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑待遇享受 状态 商保
  static upTreatmentEnjoyCommercialStatus (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentEnjoyCommercialStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除商保待遇享受环节
  static deleteTreatmentEnjoyLink (params) {
    return axios.request({
      url: '/Treatment/DeleteTreatmentEnjoyLink',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 完成待遇享受 环节
  static completionTreatmentEnjoy (params) {
    return axios.request({
      url: '/Treatment/CompletionTreatmentEnjoy',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇享受列表 商保
  static treatmentCommercialList (params) {
    return axios.request({
      url: '/Treatment/TreatmentCommercialList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇享受审核列表 商保
  static treatmentCommercialReviewList (params) {
    return axios.request({
      url: '/Treatment/TreatmentCommercialReviewList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据参保编号获取参保信息
  static getCommercialConfig (params) {
    return axios.request({
      url: '/Treatment/GetCommercialConfig',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 待遇享受列表 社保公积金
  static treatmentEnjoyList (params) {
    return axios.request({
      url: '/Treatment/TreatmentEnjoyList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇享受审核列表 社保公积金
  static treatmentEnjoyReviewList (params) {
    return axios.request({
      url: '/Treatment/TreatmentEnjoyReviewList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据条件获取用户信息 部门 组织ID
  static getUserList (params) {
    return axios.request({
      url: '/Treatment/GetUserList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 编辑商保待遇享受环节排序
  static upTreatmentEnjoyLinkSort (params) {
    return axios.request({
      url: '/Treatment/UpTreatmentEnjoyLinkSort',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受商保数据
  static exportTreatmentCommercialList (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentCommercialList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受商保审核数据
  static exportTreatmentCommercialReview_List (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentCommercialReview_List',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受公积金数据
  static exportTreatmentEnjoyListProvidentFund (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentEnjoyListProvidentFund',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受公积金审核数据
  static exportTreatmentEnjoyReviewListProvidentFund (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentEnjoyReviewListProvidentFund',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受社保数据
  static exportTreatmentEnjoyListSocialSecurity (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentEnjoyListSocialSecurity',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出待遇享受社保审核数据
  static exportTreatmentEnjoyReviewListSocialSecurity (params) {
    return axios.request({
      url: '/Treatment/ExportTreatmentEnjoyReviewListSocialSecurity',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取参保地区
  static getWelfarePercentConfigModel (params) {
    return axios.request({
      url: '/Treatment/GetWelfarePercentConfigModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
}
